]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
gdm: clear user verifier when finished with it
authorRay Strode <rstrode@redhat.com>
Mon, 3 Aug 2015 18:07:17 +0000 (14:07 -0400)
committerRay Strode <rstrode@redhat.com>
Wed, 5 Aug 2015 13:40:17 +0000 (09:40 -0400)
We only need the user verifier for the purpose of user verification.
Once it's complete we should clear it so it doesn't get in the way
later.

This fixes a bug introduced in commit 3c8c5a557059 that leads to the
user session crashing when the login screen is reactivated.

https://bugzilla.gnome.org/show_bug.cgi?id=753181

js/gdm/authPrompt.js

index 2b79701fc231c6a2490f22164fa4a4c18ae81d90..c30789e2048b92769552830f14ee4b84283bd2e1 100644 (file)
@@ -489,6 +489,7 @@ const AuthPrompt = new Lang.Class({
 
     finish: function(onComplete) {
         if (!this._userVerifier.hasPendingMessages) {
+            this._userVerifier.clear();
             onComplete();
             return;
         }
@@ -496,6 +497,7 @@ const AuthPrompt = new Lang.Class({
         let signalId = this._userVerifier.connect('no-more-messages',
                                                   Lang.bind(this, function() {
                                                       this._userVerifier.disconnect(signalId);
+                                                      this._userVerifier.clear();
                                                       onComplete();
                                                   }));
     },